/*=============================================================================
**                                  
**                      Proprietary - Copyright (C) 2013
**-----------------------------------------------------------------------------
** Supported MCUs      : <STM32F103 / MCU independent>
** Supported Compilers : <KeilC / compiler independent>
**-----------------------------------------------------------------------------
** File name         : IF_FLASH.h
**
** Module name       : IF_FLASH
**
**
** Summary: __________________________
**
**= History ===================================================================
** 1.00  22/04/2013 Cuong Chu
** - description
=============================================================================*/

#ifndef IF_FLASH_H
#define IF_FLASH_H

/*****************************************************************************/
/* INCLUSIONS                                                                */
/*****************************************************************************/
#include <stm32f10x.h> 


/*****************************************************************************/
/* PUBLISHED INFORMATION                                                     */
/*****************************************************************************/


/*****************************************************************************/
/* DEFINITION OF CONSTANTS                                                   */
/*****************************************************************************/

/*****************************************************************************/
/* DEFINITION OF TYPES                                                       */
/*****************************************************************************/

/*****************************************************************************/
/* DEFINITION OF MACROS                                                      */
/*****************************************************************************/

/*****************************************************************************/
/* DECLARATION OF VARIABLES (Only external global variables)                 */
/*****************************************************************************/

/*****************************************************************************/
/* DECLARATION OF GLOBALES FUNCTIONS (APIs, Callbacks & MainFunctions)       */
/*****************************************************************************/

/******************************************************************************
** Function name: IF_FLASH_ReadAppConfig( uint8 X)
** Description: Short Description, including preconditions
** Parameter X : p - point to data struct, SizeOfAppConfig - sizeof data
** Return value: None
** Remarks: global variables used, side effects
******************************************************************************/
void IF_FLASH_ReadAppConfig(volatile uint16_t* p,uint16_t SizeOfAppConfig);
/******************************************************************************
** Function name: IF_FLASH_WriteAppConfig( uint8 X)
** Description: Short Description, including preconditions
** Parameter X : p - point to data struct, SizeOfAppConfig - sizeof data
** Return value: None
** Remarks: global variables used, side effects
******************************************************************************/
int IF_FLASH_WriteAppConfig(volatile uint16_t* p,uint16_t SizeOfAppConfig);
#endif /* IF_FLASH_H */

